package io.xccit.order.feign;

import io.xccit.order.params.HkStocksKline;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * @author CH_ywx
 * @version 1.0
 * @create 2025/5/24
 * <p>第三方接口调用示例</p>
 */
@FeignClient(name = "hk-finance",url="https://jmqqgphqcx.market.alicloudapi.com")
public interface HkFinanceFeignClient {

    @PostMapping(value = "/finance/hk-stocks-kline", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String getHkFinanceData(@RequestHeader("Authorization") String appcode,
                            @RequestBody HkStocksKline hkStocksKline);
}
